#include "physicsobject.h"

PhysicsObject::PhysicsObject(){
    heading = Math::Vector3(0, 0, 1);
    position = Math::Vector3(0, 0, 0);
    speed = 0.00;

}

void PhysicsObject::Update(int dt){
    Math::Vector3 velocity = Math::ScalarProduct(heading, speed);
    position = Math::VectorAddition3f(velocity, position);
}

void PhysicsObject::RotateToNewHeading(Math::Vector3 axis, float angle){
//    Math::PrintVector(heading);
    heading = Math::RotateVector(heading, axis, angle);
//    Math::PrintVector(heading);
}
